package cn.kgc.ffzw.day22;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        //Map map=new HashMap();
        Map<String ,Student> map=new HashMap<String,Student>();
        Student stu=new Student("李明","男");
        map.put("jack",stu);
        Student stu1=new Student("戴媛媛","女");
        map.put("dyy",stu1);

        Set<String> keys=map.keySet();
        //Collection<Student> values=map.values();

        for (Object obj: keys) {

            Student s=  map.get(obj);

            System.out.print(obj+s.name+s.sex);
        }
    }
}
